package com.zking.ssm.sys.service.impl;

import com.zking.ssm.sys.mapper.HotelFacilityMapper;
import com.zking.ssm.sys.model.HotelFacility;
import com.zking.ssm.sys.service.IHotelFacilityService;
import com.zking.ssm.util.PageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class HotelFacilityServiceImpl implements IHotelFacilityService {
    @Autowired
    private HotelFacilityMapper hotelFacilityMapper;
    public HotelFacilityServiceImpl(){

    }
    @Override
    public int deleteByPrimaryKey(Long id) {
        return hotelFacilityMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(HotelFacility record) {
        return hotelFacilityMapper.insert(record);
    }

    @Override
    public int insertSelective(HotelFacility record) {
        return hotelFacilityMapper.insertSelective(record);
    }

    @Override
    public HotelFacility selectByPrimaryKey(Long id) {
        return hotelFacilityMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(HotelFacility record) {
        return hotelFacilityMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(HotelFacility record) {
        return hotelFacilityMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<HotelFacility> list(HotelFacility record, PageBean pageBean) {
        List<HotelFacility> hotelFacilityList = hotelFacilityMapper.list(record);
        return hotelFacilityMapper.list(record);
    }
}
